<template>
  <div class="detectionReferenceView detailView">
    <Modal v-model="isView"
           :mask-closable="false"
           title="检测指标详细"
           :footer-hide="true">
      <div class="detailView">
        <div class="detail">
          <div class="name">名称：</div>
          <div class="value">{{item.name}}</div>
        </div>
        <div class="detail">
          <div class="name">code：</div>
          <div class="value">{{item.code}}</div>
        </div>
        <div class="detail">
          <div class="name">单位：</div>
          <div class="value">{{item.unit}}</div>
        </div>
        <div class="detail">
          <div class="name">内容：</div>
          <div class="value">{{item.content}}</div>
        </div>
        <div class="detail">
          <div class="name">备注：</div>
          <div class="value">{{item.remark}}</div>
        </div>
      </div>
    </Modal>
  </div>
</template>

<script>
  export default {
    name: "detectionReferenceView",
    data () {
      return {
        isView: false,
        item: {
          id: 0,
          name: '',
          code: '',
          unit: '',
          content: '',
          remark: ''
        },
      }
    },
    methods: {
      openView (row) {
        this.isView = true
        if (row) {
          this.item = row
        }
      },
      handleCancle () {
        this.isView = false
      }
    },
    components: {}
  }
</script>

<style lang="scss" type="text/scss" rel="stylesheet/scss">
  .detectionReferenceView {
  }
</style>
